package com.kaigejava.juc.volatitle;

import java.util.concurrent.TimeUnit;

/**
 * @author kaigejava
 * volatile 保证有序性测试
 */
public class Sequence {

    public static void main(String[] args) {
       /* Sequence sequence = new Sequence();
        sequence.updateTest1();
        sequence.method2();*/
       for(int x = 0;x<20;x++){
           new Thread(()->{
               for(int y = 0;y<100;y++){
                   Sequence sequence = new Sequence();

               }
           }).start();
       }
    }
}
